package cn.yh.org.service;

import cn.yh.basic.PageList;
import cn.yh.org.domain.Department;
import cn.yh.org.query.DepartmentQuery;

import java.util.List;

public interface IDepartmentService {
    //通过id查询部门
    Department queryOne(Long id);
    //查询所有部门数据
    List<Department> queryAll();
    //新增
    void add(Department department);
    //修改
    void update(Department department);
    //通过id删除数据
    void delete(Long id);
    //分页查询
    PageList<Department> queryPage(DepartmentQuery departmentQuery);
}
